package com.group02.community.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.group02.community.entity.user.SysRole;
import com.group02.community.entity.vo.queryVO.RoleQueryVO;

public interface IRoleService extends IService<SysRole> {

    /**
     * 获取角色分页
     * @param current
     * @param size
     * @return
     */
    IPage<SysRole> getRolePage(Long current, Long size, RoleQueryVO rq);

    /**
     * 根据角色id获取
     * @param id
     * @return
     */
    SysRole getRoleById(Long id);

    /**
     * 添加角色以及相关联
     * @param role
     * @return
     */
    String addAllRoleMsg(SysRole role);

    /**
     * 修改角色
     * @param role
     * @return
     */
    String updateAllRoleMsg(SysRole role);
}
